#ifndef CUSTOMEMPLOYEEWIDGET_H
#define CUSTOMEMPLOYEEWIDGET_H

#include <QWidget>
#include <QPixmap>
#include <QByteArray>
#include "employeepage.h"

namespace Ui {
class CustomEmployeewidget;
}

class CustomEmployeewidget : public QWidget
{
    Q_OBJECT

public:
    explicit CustomEmployeewidget(QWidget *parent = nullptr);
    ~CustomEmployeewidget();

    void setText(const QString &name, const QString &surname, const QString &patronymic, const QString &number, const QString &role, const QByteArray &image);
    QString getText();

signals:
    void sendRemoveItem(const QString &name, const QString &surname, const QString &patronymic, const QString &number, const QString &role);

    void showEditPage();

private slots:
    void on_pushButton_clicked();

private:
    Ui::CustomEmployeewidget *ui;
    EmployeePage employeePage;
};

#endif // CUSTOMEMPLOYEEWIDGET_H
